package com.ibeeking.gmc.global.g.rest.service;

import com.ibeeking.gmc.global.service.common.bo.DictTypeBO;
import com.ibeeking.gmc.global.service.common.param.DictTypeParam;
import com.ibeeking.gmc.global.service.common.query.DictTypePageQuery;
import com.ibeeking.gmc.global.service.common.vo.DictTypePageVO;
import com.ibeeking.gmc.global.service.common.vo.DictTypeVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


/**
 * IDictTypeService
 *
 * @Author ibeeking
 * @Date 2020-12-02 16:06
 */
public interface IDictTypeService {

    /***
     * 分页查询
     * @param dictTypePageQuery
     * @return
     */
    Page<DictTypePageVO> pageList(DictTypePageQuery dictTypePageQuery);

    /***
     * 新增
     */
    Boolean add(DictTypeParam dictTypeParam);

    /***
     * 修改
     */
    Boolean modify(DictTypeParam dictTypeParam);

    /***
     * 通过id查询
     */
    DictTypeVO view(Long id);

    DictTypeBO queryById(Long id);

    /***
     * 修改状态
     */
    Boolean changeStatus(Long id, Integer status, Long userId);

    /***
     * 通过id删除
     */
    Boolean del(Long id);

    /**
     * 校验类型
     *
     * @return
     */
    Boolean checkType(String type);
}